<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>系统设置</title>
	<link href="/css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<div class="place">
    	<span>位置：</span>
	    <ul class="placeul"><li><a href="/index.html">首页</a></li><li>系统设置</li></ul>
    </div>
    
    <div class="rightinfo">
	    <div class="tools">
	    	<ul class="toolbar">
		        <li class="click"><a href="javascript:void(0);" id="addBtn"><span><img src="/images/t01.png" /></span>添加</a></li>
		        <li id="delBatch"><span><img src="/images/t03.png" /></span>批量删除</li>
	        </ul>
	        <ul class="toolbar1">
	        	<form action="/sys/set/sets.html" method="post">
		        	<span>
		        		<input name="code" class="scinput" type="text" value="${(set.code)!""}" autocomplete="off" placeholder="编码">
				    	<input type="submit" class="scbtn" value="查询"/>
		        	</span>
	    		</form>
	        </ul>
	    </div>
        
    	<table class="tablelist">
	    	<thead>
		    	<tr>
			        <th width="15%">编码</th>
			        <th width="15%">名称</th>
			        <th width="25%">值</th>
			        <th width="35%">备注</th>
			        <th width="10%">操作</th>
		        </tr>
	        </thead>
	        <tbody>
	        <#if sets??>
			  		<#list sets as item>
						<tr>
					        <td id="code_${(item.code)!""}">${(item.code)!""}</td>
					        <td id="name_${(item.code)!""}">${(item.name)!""}</td>
					        <td id="value_${(item.code)!""}">${(item.value)!""}</td>
					        <td id="desc_${(item.code)!""}">${(item.description)!""}</td>
					        <td>
					        	<a href="javascript:void(0);" code="${(item.code)!""}" name="editBtn">编辑</a>
					        </td>
				        </tr> 
			  		</#list>
			  	</#if>
	        </tbody>
	    </table>
   		<#import "/common/pager.ftl" as page>
		<#if count??>
			<@page.pager start=start size=size count=count url="/sys/set/sets.html?t=1" gotoPage=true />
		</#if>
		
		<!-- 以下为弹出层 -->
		<!-- 数据编辑弹出层，全部逻辑放一起处理了，根据不同操作来显示 -->
		<div class="tip" id="setEditDiv" style="width:450px;">
			<div class="tiptop"><span id="tipTitie">修改价格</span><a></a></div>
			<div class="tipinfo2">
			    <ul class="forminfo">
				    <li class="contentWapper" name="numberInventoryLi">
				    	<label>编码：</label>
				    	<input id="code" type="text" class="dfinput" style="width:300px;"/>
				    </li>
				    <li class="contentWapper" name="priceLi">
				    	<label>名称：</label>
				    	<input id="name" type="text" class="dfinput" value="" style="width:300px;"/>
				    </li>
				    <li class="contentWapper" name="priceLi">
				    	<label>&emsp;值：</label>
				    	<input id="value" type="text" class="dfinput" value="" style="width:300px;" />
				    </li>
				    <li class="contentWapper" name="priceLi">
				    	<label>备注：</label>
				    	<textarea id="description" class="textinput" style="width:280px;height:100px;"></textarea>
				    </li>
				    <li>
				    	<label>&nbsp;</label>
				    	<input id="submitBtn" type="button" class="btn-blue" value="确认"/>&nbsp;&nbsp;
				    	<input id="closeBtn" type="button" class="btn-blue" value="关闭"/>
				    </li>
			    </ul>
	        </div>
	    </div>
	</body>
	<script type="text/javascript" src="/js/jquery-1.10.1.min.js"></script>
	<script type="text/javascript" src="/js/commonList.js"></script>
	<script type="text/javascript" src="/js/biz/sets.js"></script>
</html>